Skip to content

fix!: adapt to upstream features: data shape change#153

Merged
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:simplified-navbar-provides
Apr 10, 2026
Merged

fix!: adapt to upstream features: data shape change#153
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:simplified-navbar-provides

Conversation

@arbrandes
Copy link
Copy Markdown
Contributor

@arbrandes arbrandes commented Apr 9, 2026

Description

Adapts to the upstream breaking change in frontend-base where the provides constant was renamed to providesCourseNavigationRolesId and the data shape changed from { courseNavigationRoles: string[] } to a flat string[]. Extracts the provides config into its own module using the upstream constant.

Renames all public-facing identifiers (appId, role, route/slot/widget IDs, and exported names) from instructor to instructorDashboard for consistency.

Removes the instructorDashboardMessages export from index.ts, since translations are handled at the site level via site.i18n and the export breaks when the compiled dist/ is consumed by a site.

Depends on openedx/frontend-base#220.

LLM usage notice

Built with assistance from Claude.

@arbrandes arbrandes marked this pull request as draft April 9, 2026 19:31
@diana-villalvazo-wgu
Copy link
Copy Markdown
Contributor

will merge once frontend base is updated (when related PR is merged)

@arbrandes arbrandes force-pushed the simplified-navbar-provides branch 2 times, most recently from cff349e to b584ff9 Compare April 10, 2026 09:55
@arbrandes arbrandes changed the title fix!: adapt to upstream provides data shape change fix!: adapt to upstream features: data shape change Apr 10, 2026
@arbrandes arbrandes force-pushed the simplified-navbar-provides branch from b584ff9 to 5ff086a Compare April 10, 2026 12:17
@arbrandes arbrandes linked an issue Apr 10, 2026 that may be closed by this pull request
@arbrandes arbrandes force-pushed the simplified-navbar-provides branch from fce4609 to 6d94b75 Compare April 10, 2026 16:08
Adapts to the upstream rename of the provides constant and the
flat string data shape. Removes the messages export from index.ts
since translations are handled at the site level.

BREAKING CHANGE: public identifiers now use `instructorDashboard`
instead of `instructor`.

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes arbrandes force-pushed the simplified-navbar-provides branch from 6d94b75 to 9e2a277 Compare April 10, 2026 18:04
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.83%. Comparing base (ddaa1ac) to head (9e2a277).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/provides.ts 0.00% 1 Missing ⚠️
src/routes.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #153      +/-   ##
==========================================
- Coverage   81.89%   81.83%   -0.06%     
==========================================
  Files          87       88       +1     
  Lines        1121     1123       +2     
  Branches      240      256      +16     
==========================================
+ Hits          918      919       +1     
+ Misses        198      197       -1     
- Partials        5        7       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arbrandes arbrandes marked this pull request as ready for review April 10, 2026 18:06
@arbrandes arbrandes merged commit da264e0 into openedx:main Apr 10, 2026
4 of 6 checks passed
@arbrandes arbrandes deleted the simplified-navbar-provides branch April 10, 2026 18:08
@openedx-semantic-release-bot
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-alpha.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Header slot deactivation via provides:

3 participants